package com.qf.vote2203.dbvote.service;

import com.qf.vote2203.dbvote.entity.Vote;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dong
 * @since 2023-02-27
 */
public interface IVoteService extends IService<Vote> {

    String getToken(String phone) throws Exception;

    void doVote(String phone, Integer cadidateId, String token) throws Exception;

    List<Map<String, Object>> statisticVote();
}
